package com.msgqu.share.exception;

import com.msgqu.share.domain.common.Result;

/**
 * @description:
 * @author: wsj
 * @create: 2020-11-25 17:58
 * @throws:
 */
public class SharedException extends RuntimeException{

    private Integer code;
    private String msg;

    public SharedException(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Result getResult(){
        return Result.fail(code,msg,null);
    }

}
